﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace XtremBiking.Web.Models.Usuarios
{
    public class CreateGoal
    {
        [HiddenInput(DisplayValue = false)]
        public long IdUser { get; set; }

        [Display(Name = "DisplayGoalDescription", ResourceType = typeof(Recursos.Modelos.Usuarios.CreateGoal))]
        [Required(AllowEmptyStrings = false, ErrorMessageResourceName = "GoalDescriptionRequired", ErrorMessageResourceType = typeof(Recursos.Modelos.Usuarios.CreateGoal))]
        [StringLength(250, ErrorMessageResourceName = "GoalDescriptionMaxChars", ErrorMessageResourceType = typeof(Recursos.Modelos.Usuarios.CreateGoal))]
        [DataType(System.ComponentModel.DataAnnotations.DataType.MultilineText)]
        public string Description { get; set; }

        [Display(Name = "DisplayGoalDate", ResourceType = typeof(Recursos.Modelos.Usuarios.CreateGoal))]
        [Required(AllowEmptyStrings = false, ErrorMessageResourceName = "GoalDateRequired", ErrorMessageResourceType = typeof(Recursos.Modelos.Usuarios.CreateGoal))]
        [DataType(System.ComponentModel.DataAnnotations.DataType.Date)]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime Date { get; set; }
    }
}